<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>
</head>
<body>

<table border="1">
    <tr>
        <td>ID</td>
        <td>名称</td>
        <td>执行者ID</td>
        <td>审批人</td>
        <td>转办人</td>
        <td>流程实例ID</td>
        <td>流程定义ID</td>
        <td>流程中变量数量</td>
        <td>当前节点名称</td>
        <td>当前节点编码</td>
        <td>下一节点名称</td>
        <td>下一节点编码</td>
        <td>创建时间</td>
        <td>操作</td>
    </tr>
    <tr  th:each="pd,tStat : ${tasks}">
        <td th:text="${pd.id}"></td>
        <td th:text="${pd.name}"></td>
        <td th:text="${pd.executionId}"></td>
        <td th:text="${pd.assignee}"></td>
        <td th:text="${pd.owner}"></td>
        <td th:text="${pd.processInstanceId}"></td>
        <td th:text="${pd.processDefinitionId}"></td>
        <td th:text="${pd.variableCount}"></td>
        <td th:text="${pd.currentNodeName}"></td>
        <td th:text="${pd.currentNodeCode}"></td>
        <td th:text="${pd.nextNodeName}"></td>
        <td th:text="${pd.nextNodeCode}"></td>
        <td th:text="${pd.createDateString}"></td>
        <td>
            <a th:href="@{'/assigneePage?taskId='+${pd.id}}">设置审批人</a>
            &nbsp;&nbsp;&nbsp;
            <a th:href="@{'/transferPage?taskId='+${pd.id}+'&oldAssignee='+${pd.assignee}}">转办</a>
            &nbsp;&nbsp;&nbsp;
            <a th:href="@{'/flowChatPage?processInstanceId='+${pd.processInstanceId}}">查看流程图</a>
            &nbsp;&nbsp;&nbsp;
            <a th:href="@{'/complete/'+${pd.id}}">审批任务</a>
        </td>
    </tr>
</table>

</body>
</html>
